package chapter10.practice16;

/**
 * Created by yangliwei on 2017/10/21.
 */
public class Main {
    public static void run(Cycle cycle){
        cycle.ride();
        cycle.sit();

    }
    public static void main(String[] args) {
        run(BiCycle.cycleFactory.getCycle());
        run(TriCycle.cycleFactory.getCycle());
        run(UniCycle.cycleFactory.getCycle());
    }
}
